<template>
  <fieldset>
    <legend>其他组件1</legend>
    <Modal :visable="isShow" @on-confirm="confirm"
    @on-cancel="cancel">
        <h1 slot="tip">通知</h1>
        <h3 slot="content">作业写完了吗</h3>
    </Modal>
    <button @click="openModal">点击显示模态框</button>
  </fieldset>
</template>
<script>
import Modal from "./modal";
import modalMix from "./mixins/modal"
export default {
    mixins:[modalMix],
  components: {
    Modal,
  },
};
</script>
